﻿using System;
using System.Collections.Generic;
using System.Linq;
using Domain.Entity;

namespace CommonDao
{
    public class QQAcountDao
    {
        public static List<QQAcount> GetAllAcount()
        {
            using (var db = new DBDataContext())
            {
                return db.QQAcount.ToList();
            }
        }
        public static QQAcount GetFirstAcount()
        {
            using (var db = new DBDataContext())
            {
                return db.QQAcount.FirstOrDefault();
            }
        }
    }
}
